<%@ page contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/common/init.jsp"%>
<link href="<c:url value='/admin/css/custom.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/admin/css/style.css'/>" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	background: #ffffff;
	margin-top:10px;
	margin-left:5px;
	margin-right:5px;
}
-->
</style>
<script type="text/javascript">

</script>
<body>
<div class="EpmsInall">
<div class="EpmsSubTitle"><p><b>查询条件</b></p>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="EpmsTable">
<form action="prizepay.action" method="post" >
	<tr>
    <td width="10%" class="EpmsTdWithColor">
    	<span class="portlet-section-header">会员ID</span></td>
	<td width="23%" class="EpmsTdNoColor">
	 	<input type="text" name="accountType" value="${accountType}"  id="projectName" class=inputInput/>
	</td> 
	<td width="10%" class="EpmsTdWithColor">
    	<span class="portlet-section-header">级别</span></td> 
	<td width="23%" class="EpmsTdNoColor" >
		<select name="level">
		<option value="">所有</option>
			<c:forEach var="levels" items="${levelList}">
			 	<option value="${levels.code }" <c:if test="${levels.code eq level}">selected</c:if> >${levels.name }</option>
			</c:forEach>
		</select>
	</td>
    </tr>
    <tr>
		<td class="EpmsTdNoColor" colspan="4" align="center">
			<div class="EpmsButtonDiv">&nbsp;
			  <input type="submit" name="button" id="querybtn" value="查询" class="inputSubmit" />
			  <input type="reset" name="button" id="button" value="清空" class="inputSubmit" />
			</div>
		</td>
	</tr>
</form>
</table>

<div class="EpmsSubTitle"><p><b>工资汇总</b></p></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="EpmsTable">
  <tr>
	  <td class=EpmsTdTitle>序号</td>
	  <td class=EpmsTdTitle>会员ID</td>
	  <td class=EpmsTdTitle>会员级别</td>
	  <td class=EpmsTdTitle>直推奖</td>
	  <td class=EpmsTdTitle>对碰奖</td>
	  <td class=EpmsTdTitle>见点奖</td>
	  <td class=EpmsTdTitle>领导奖</td>
	  <td class=EpmsTdTitle>重消</td>
	  <td class=EpmsTdTitle>爱心基金</td>
	  <td class=EpmsTdTitle>秒发奖金</td>
	  <td class=EpmsTdTitle>日期</td>
  </tr>
	<c:forEach var="account" items="${accountRateList}" varStatus="status">
		<tr>
			<td class=EpmsTdNoColor >${status.count}</td>
		    <td class=EpmsTdNoColor >
		   		${account[0]}
		    </td>
			<td class=EpmsTdNoColor >
				<c:if test="${account[1] eq '1'}">一星</c:if>
				<c:if test="${account[1] eq '2'}">二星</c:if>
				<c:if test="${account[1] eq '3'}">三星</c:if>
				<c:if test="${account[1] eq '4'}">四星</c:if>
				<c:if test="${account[1] eq '5'}">五星</c:if>
			</td>
		    <td class=EpmsTdNoColor >${account[3]}&nbsp;</td>
			<td class=EpmsTdNoColor >${account[4]}&nbsp;</td>
		    <td class=EpmsTdNoColor >${account[6]}&nbsp;</td>
			<td class=EpmsTdNoColor >${account[5]}&nbsp;</td>
			<td class=EpmsTdNoColor >${account[7]}&nbsp;</td>
			<td class=EpmsTdNoColor >${account[8]}&nbsp;</td>
			<td class=EpmsTdNoColor>
				秒发奖金
			</td>
			<td class=EpmsTdNoColor>
			${account[2]}
			</td>
		</tr>
	</c:forEach>
	<tr>
		<td class="EpmsTdNoColor" colspan="11" align="right">
		第${pageNo}页&nbsp;&nbsp;
			<c:choose>
			<c:when test="${pageNo >1}">
				<a href="javascript:void(0);" style="text-decoration: none;">
					<span onclick="frontpage(${pageNo-1})">上一页</span>&nbsp;
				</a>
			</c:when>
			<c:otherwise>
				上一页 &nbsp;
			</c:otherwise>
			</c:choose>
			<c:choose>
				<c:when test="${totalPage > pageNo}">	
					<a href="javascript:void(0);" style="text-decoration: none;">
						<span onclick="nextpage(${pageNo+1})">下一页</span> &nbsp;
					</a>
				</c:when>
				<c:otherwise>
					下一页&nbsp;
				</c:otherwise>
			</c:choose>
			&nbsp;共${totalPage}页
		</td>
	</tr>
</table>
</div>
</body>
<script type="text/javascript">
function frontpage(pageNo){
	location = "${ctx}/admin/prizepay.action?pageNo="+pageNo;
}

function nextpage(pageNo){
	location = "${ctx}/admin/prizepay.action?pageNo="+pageNo;
}
</script>